package com.fjrcloud.dao;

import com.fjrcloud.entity.Formalities;
import com.fjrcloud.entity.Land;
import com.fjrcloud.entity.LandStandard;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by shengjian.lin on 17-1-18.
 */
public interface LandStandardDao extends BaseDao<LandStandard,Integer> {
    Page<LandStandard> findByValidOrderByCreateTimeAsc(boolean valid, Pageable pageable);
    Page<LandStandard> findByTypeAndValidOrderByCreateTimeAsc(Land type,boolean valid, Pageable pageable);
    Page<LandStandard> findByTypeAndFormalitiesAndValidOrderByCreateTimeAsc(Land type, Formalities formalities,boolean valid, Pageable pageable);
}

